#ifndef	CAPTURE_H
#define CAPTURE_H


#define MAX_OUTPUT_PLUGINS 4
#define MAX_PLUGIN_ARGUMENTS 30
#define	SOURCE_VERSION	"1.0"


#include "./input/input.h"
#include "./output/output.h"


/* global variables that are accessed by all plugins */
typedef struct _GLOBALS GLOBALS;
struct _GLOBALS
{
    int stopFlag;

    /* signal fresh frames */
    pthread_mutex_t db;
    pthread_cond_t  db_update;

    /* global JPG frame, this is more or less the "database" */
    unsigned char *buf;
    int bufSize;

    /* input plugin */
    INPUT in;

    /* output plugin */
    OUTPUT out[MAX_OUTPUT_PLUGINS];
    int outcnt;

    int avi_mode;
    /* pointer to control functions */
    //  int (*control)(int command, char *details);
};

#endif
